package com.aaa.docter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.aaa.docter.dao")
@ComponentScan(basePackages = {"com.aaa.config","com.aaa.docter"}) //写了该注解 那么默认的包扫就会失效
//@EnableTransactionManagement
@EnableFeignClients //开启openfeign的注解驱动
public class DocterApp {
    public static void main(String[] args) {
        SpringApplication.run(DocterApp.class);
    }
}
